CLASS_FILES = CType.py
CLASS_PYC_FILES =  $(CLASS_FILES:.py=.pyc)

all: test
test: self_test
	@cd RTL; make self_test
clean:
	@rm -f *.pyc
	@rm -f *.exe
	@rm -f *.out
	@rm -f lextab.py parsetab.py

self_test: clean $(CLASS_PYC_FILES)
%.pyc:%.py
	@../util/test_py.py $<
	@../util/compile_pyc.py $<

comp:
	./czv -d example/simple.c
comp2:
	./czv -d example/fibonacci.c
test2:
	gcc -o test_fibonacci example/test_fibonacci.c example/fibonacci.c
	./test_fibonacci
